#!/bin/bash

# eg. sh auto_build.sh 

echo "1. checkout origin/release"
git checkout -b origin/release
git pull

if [ ! -d "../build_arm" ];then
    echo "2. mkdir -p ../build_arm"
    mkdir -p ../build_arm
else
    echo "2. ../build_arm exist"
fi

cd ../build_arm
echo "3. cmake"
cmake ../ -DOA_TARGET_PLATFORM=Linux-ARMV7

echo "4. make -j install"
make -j isntall